package com.power.sifa.std.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.std.model.Std_matter_attach;
import com.power.sifa.std.model.pageInfo.Std_matter_attachPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  申请所需材料 Feign
 */
public interface IStd_matter_attachFeign {

    /**
     * 申请所需材料分页列表
     */
    @PostMapping("/std_matter_attach/list")
    ResponseDTO list(@RequestBody Std_matter_attachPageInfo std_matter_attachPageInfo);

    /**
    * 查看申请所需材料
    */
    @GetMapping("/std_matter_attach/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除申请所需材料
    */
    @PostMapping("/std_matter_attach/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看申请所需材料 复合主键使用
    // */
    //@PostMapping("/std_matter_attach/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Std_matter_attach.Std_matter_attachPK pk);

    /**
     * 修改或保存申请所需材料
     */
    @PostMapping("/std_matter_attach/save")
    ResponseDTO save(@RequestBody Std_matter_attach std_matter_attach);

    ///**
    // * 删除申请所需材料 复合主键使用
    // */
    //@PostMapping("/std_matter_attach/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Std_matter_attach.Std_matter_attachPK pk);

    /**
     * 批量删除申请所需材料
     */
    @PostMapping("/std_matter_attach/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);

     /**
     * 导出excel
     */
    @PostMapping("/std_matter_attach/output")
    void output(HttpServletResponse response, @RequestBody Std_matter_attachPageInfo std_matter_attachPageInfo);

     /**
     * 导出excel模板
     */
    @PostMapping("/std_matter_attach/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);

     /**
     *	导入excel
     */
    @PostMapping("/std_matter_attach/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;

}
